home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / amazingrace.swf / scripts / DefineButton2_230 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2006-06-13  |  627 b   |  17 lines

  1. on(release){
  2.    if(name_txt.text.length > 1 && name_txt.text != "" && name_txt.text != " ")
  3.    {
  4.       name_txt.selectable = false;
  5.       url = "http://www.freeaddictinggames.com/scores/update.php";
  6.       gameID = "amazingrace";
  7.       sendTop_lv.game = gameID;
  8.       sendTop_lv.name = name_txt.text;
  9.       sendTop_lv.score = _global.gl_user_info.score;
  10.       var hash = gameID + ":" + name_txt.text + ":" + _global.gl_user_info.score;
  11.       sendTop_lv.key = _root.MD5(hash);
  12.       sendTop_lv.sendAndLoad(url,sendTop_res_lv);
  13.       this.submit_btn.enabled = false;
  14.       name_txt.text = "Please wait...";
  15.    }
  16. }
  17.